﻿import request from '/@/utils/request';
enum Api {
  AddSysPageOptionConfigColumn = '/api/sysPageOptionConfigColumn/add',
  DeleteSysPageOptionConfigColumn = '/api/sysPageOptionConfigColumn/delete',
  UpdateSysPageOptionConfigColumn = '/api/sysPageOptionConfigColumn/update',
  SaveSysPageOptionConfigColumn = '/api/sysPageOptionConfigColumn/save',
  PageSysPageOptionConfigColumn = '/api/sysPageOptionConfigColumn/page',
  ExportSysPageOptionConfigColumn = 'api/sysPageOptionConfigColumn/export',
}

//导出页面配置明细
export const exportSysPageOptionConfigColumnExcel=(params?:any)=>
	request({
		url:Api.ExportSysPageOptionConfigColumn,
		method:'post',
		data:params,
		responseType: 'blob'
	});

// 增加页面配置明细
export const addSysPageOptionConfigColumn = (params?: any) =>
	request({
		url: Api.AddSysPageOptionConfigColumn,
		method: 'post',
		data: params,
	});

// 删除页面配置明细
export const deleteSysPageOptionConfigColumn = (params?: any) => 
	request({
			url: Api.DeleteSysPageOptionConfigColumn,
			method: 'post',
			data: params,
		});

// 编辑页面配置明细
export const updateSysPageOptionConfigColumn = (params?: any) => 
	request({
			url: Api.UpdateSysPageOptionConfigColumn,
			method: 'post',
			data: params,
		});

// 保存页面配置明细
export const saveSysPageOptionConfigColumn = (params?: any) => 
	request({
			url: Api.SaveSysPageOptionConfigColumn,
			method: 'post',
			data: params,
		});

// 分页查询页面配置明细
export const pageSysPageOptionConfigColumn = (params?: any) => 
	request({
			url: Api.PageSysPageOptionConfigColumn,
			method: 'post',
			data: params,
		});


